<?php if (validation_errors()): ?>
<div class="error-box">
	<?php echo validation_errors();?>
</div>
<?php endif; ?>

<?php if($this->session->flashdata('error')): ?>
<div class="error-box">
	<?php echo $this->session->flashdata('error'); ?>
</div>
<?php endif; ?>

<?php if($this->session->flashdata('success')): ?>
<div class="success-box">
	<?php echo $this->session->flashdata('success'); ?>
</div>
<?php endif; ?>
	
<?php echo form_open('users/login', array('id'=>'login')); ?>
<fieldset id="login">
	<legend><?php echo lang('user_login_header'); ?> </legend>
		<label for="email"><?php echo lang('user_email_label'); ?></label>
		<input type="text" id="email" name="email" maxlength="120" />
		<br/>
		<label for="password"><?php echo lang('user_password_label'); ?></label>
		<input type="password" id="password" name="password" maxlength="20" />
		<br/>
		<input type="submit" value="<?php echo lang('user_login_header'); ?>" name="btnLogin" />
</fieldset>
<?php echo form_close(); ?>